<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:include="shared/css_js::header">
	<title>jQuery WeUI</title>
	<link rel="stylesheet" type="text/css" href="/static/css/weuicss/weui.min.css"/>
</head>

<body>

<header class="mui-bar mui-bar-nav">
	<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
	<h1 class="mui-title"><font size="4"><b >选择年份</b></font></h1>
</header>

<div class="mui-content ">
	<div class="block-brand" >
		<!--<h3 id="brand-jump-A" data-tips="A" style="background: #f8f8f8;" >选择发动机排量</h3>-->
		<input type="hidden" th:name="carlineid" th:value="${carlineid}"/>
		<input type="hidden" th:name="carbrand" th:value="${carbrand}"/>
		<input type="hidden" th:name="carvol" th:value="${carvol}"/>
		<ul class="list-line list-line-logo">
			<li th:each="caryear:${caryear}" th:onclick="'javascript:choosecaryear(this)'">
				<span th:text="${caryear.caryear}" class="caryear">2015</span>款
			</li>
		</ul>
	</div>
	<div class="weui-cells__title" align="center">没有再多内容啦</div><!--间隔一下-->
</div>

<input id="flag" type="hidden" th:value="${flag}"/>
<input id="busiid" type="hidden" th:value="${busiid}"/>
<input id="shopid" type="hidden" th:value="${shopid}"/>
<link rel="stylesheet" type="text/css" th:href="@{/css/personcss/carline.css}"/>
</body>
<script th:inline="javascript">
    /*<![CDATA[*/
    /*选完排量后,同时把品牌和车系，排量传过去*/
    function choosecaryear($this) {
        /*所选的品牌*/
        var carbrand=$($this).parent().parent().find("input[name=carbrand]").val();
        /*所选车系*/
        var carlineid=$($this).parent().parent().find("input[name=carlineid]").val();
        /*所选排量*/
        var carvol=$($this).parent().parent().find("input[name=carvol]").val();
        /*所选年份*/
        var caryear=$($this).find(".caryear").text();
        var flag=$("#flag").val();
        var busiid=$("#busiid").val();
        var shopid=$("#shopid").val();
       location.href="/person/increasecar?carbrand="+carbrand+"&carlineid="+carlineid+"&carvol="+carvol+"&caryear="+caryear+"&flag="+flag+"&busiid="+busiid+"&shopid="+shopid;
    }
    /*]]>*/
</script>
</html>
